package com.itheima.ip;

import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.Arrays;

public class Demo01 {


    public static void main(String[] args) throws UnknownHostException {


        InetAddress address = InetAddress.getByName("192.168.14.44");

        System.out.println(address.getHostName());
        System.out.println(address.getHostAddress());
        byte[] address1 = address.getAddress();
        System.out.println(Arrays.toString(address1));

    }
}
